import java.util.Map;
import java.util.TreeMap;

public class Test {

    public static void main(String[] args) {
        Map<String,Integer> map=new TreeMap<>();
        //
        TreeMap<String,Integer> map2=new TreeMap<>();


        map2.put("this",3);

        map2.put("the",5);

        map2.put("a",7);
        int val=map2.get("the");
        //remove是删除的意思：
        //左边是一个接口，
    }

    public static void main2(String[] args) {
        BinarySearchTree binarySearchTree=new BinarySearchTree();
        binarySearchTree.insert(3);
        binarySearchTree.insert(6);
        binarySearchTree.insert(8);
        binarySearchTree.insert(5);
        System.out.println(binarySearchTree.search(6));

        System.out.println("+++++++++++++++++++");
    }
}
